package com.qingke.easyjava.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.qingke.easyjava.LifecycleBean;

public class BeanLifecycleDemo {
	
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beanlifecycle.xml");
		LifecycleBean bean = context.getBean(LifecycleBean.class);
		System.out.println("get bean from context");
		context.close();
	}
	
	
}
